package cn.gene.timeyan.article.webapi.task;

import cn.gene.timeyan.article.service.LikeService;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.text.SimpleDateFormat;
@Slf4j
public class LikeTask /*extends QuartzJobBean*/ {

   /* @Autowired
    private LikeService likeService;
    private SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    @Override
    public void executeInternal(JobExecutionContext context) throws JobExecutionException {
        log.info("LikeTask-----{}");
        //将 Redis 里的点赞信息同步到数据库里
        likeService.transLikedFromRedis2DB();

        likeService.transLikedCountFromRedis2DB();


    }*/
}
